import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import commonjs from '@rollup/plugin-commonjs';
import { babel } from '@rollup/plugin-babel';
import { resolve } from 'path'
// https://vitejs.dev/config/
export default defineConfig({
  server: {
    fs: {
      // 可以为项目根目录的上一级提供服务
      allow: ['..']
    }
  },
  plugins: [vue()],
  resolve: {
    alias: {
      '@': resolve('src')
    },
  }
})
 